<template>
  <div></div>
</template>

<script>
import cookie from '@/utils/cookie';
export default {
    created() {
        let lasthref = cookie.getCookie('lasthref');
        try {
            if (lasthref.indexOf('login') >= 0 || !lasthref) {
                lasthref = window.location.origin;
            }
            window.location.href = lasthref;
        }
        catch (err) {
            window.location.href = window.location.origin;
        }
    }
};
</script>